export default [
  {
    path: '/resultQry.do',
    method: 'post',
    handle({ Repeat }) {
      let obj = Repeat('1', {
        'data|1': [
          // 待审核状态
          {
            serialNum: '@string(number,12)',
            state: '00',
            dealState: '1',
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '2',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '1',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '1',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '1',
                  deadline: '8天 12:09:00',
                },
              ],
            },
            step3: {},
            step4: {},
          },
          // 已撤销状态
          {
            serialNum: '@string(number,12)',
            state: '00',
            dealState: '5',
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
              revokeTime: '@date(2020-MM-dd HH:mm)',
            },

            step2: {
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '1',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '1',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '1',
                },
              ],
            },
            step3: {},
            step4: {},
          },
          // 审核中
          {
            serialNum: '@string(number,12)',
            state: '00',
            dealState: '2',
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '2',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '1',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '1',
                  deadline: '8天 12:09:00',
                },
              ],
            },
            step3: {},
            step4: {},
          },
          // 已退回或已拒绝
          {
            serialNum: '@string(number,12)',
            state: '00',
            'dealState|1': ['3', '4'],
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '3',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '3',
                  name: '@cname',
                  'status|1': ['3', '4'],
                  reason: '不符合要求',
                },
              ],
            },
            step3: {},
            step4: {},
          },
          // 待银行处理
          {
            serialNum: '@string(number,12)',
            state: '00',
            dealState: '9',
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '16',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
              ],
            },
            step3: {
              bank: '科蓝银行',
              status: '2',
            },
            step4: {},
          },
          // 银行退回或拒绝
          {
            serialNum: '@string(number,12)',
            state: '00',
            'dealState|1': ['11', '12'],
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '16',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
              ],
            },
            step3: {
              bank: '科蓝银行',
              'status|1': ['3', '4'],
              tradeTime: '@date(2020-MM-dd HH:mm)',
              reason: '不符合要求',
            },

            step4: {},
          },
          // 交易成功
          {
            serialNum: '@string(number,12)',
            state: '00',
            dealState: '13',
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '16',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
              ],
            },
            step3: {
              bank: '科蓝银行',
              status: '16',
            },

            step4: {
              desc: '交易成功',
              status: '16',
              time: '@date(2020-MM-dd HH:mm)',
            },
          },
          // 交易失败
          {
            serialNum: '@string(number,12)',
            state: '00',
            dealState: '14',
            list: [
              {
                level: '1',
                'num|1': ['1', '2'],
              },
              {
                level: '2',
                'num|1': ['1', '2'],
              },
              {
                level: '3',
                'num|1': ['1', '2'],
              },
            ],
            step1: {
              username: '@cname',
              tradeTime: '@date(2020-MM-dd HH:mm)',
            },
            step2: {
              status: '16',
              list: [
                {
                  level: '1',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '2',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
                {
                  level: '3',
                  name: '@cname',
                  state: '16',
                  status: '16',
                  tradeTime: '@date(2020-MM-dd HH:mm)',
                },
              ],
            },
            step3: {
              bank: '科蓝银行',
              status: '16',
            },

            step4: {
              desc: '交易失败',
              status: '3',
              time: '@date(2020-MM-dd HH:mm)',
              reason: '不符合要求',
            },
          },
        ],
      });
      let data = obj.data;
      return {
        data,
        _RejCode: '00000000',
      };
    },
  },
];
